package facade;

/**
 * 定义一个外观类，封装多个子系统的操作
 *
 * @author ycc
 * @date 2024/4/1
 */
public class Facade {
    private SubSystem subSystem1;
    private SubSystem subSystem2;
    private SubSystem subSystem3;

    public Facade() {
        subSystem1 = new SubSystem();
        subSystem2 = new SubSystem();
        subSystem3 = new SubSystem();
    }

    public void operation() {
        subSystem1.operation();
        subSystem2.operation();
        subSystem3.operation();
    }
}
